export const singleUnifledPurchaseColumns = [
  {
    title: 'SKU编码',
    key: 'skuNo',
    minWidth: 150
  },
  {
    title: '商品名称',
    key: 'productName',
    minWidth: 150
  },
  {
    title: '规格',
    key: 'specDetailStr',
    minWidth: 150
  },
  {
    title: '商品类型',
    key: 'productTypeStr',
    minWidth: 150
  },
  {
    title: '主计量单位',
    key: 'mainUnitStr',
    minWidth: 150
  },
  {
    title: '进价类型',
    key: 'purchasePriceType',
    render: (h, {
      row
    }) => {
      return (
        <div >
          { row.purchasePriceType == 1 ? '统一进价' : '区域进价'}
        </div>
      );
    }
  },
  {
    title: '主计量进价',
    key: 'mainPurchasePrice',
    width: 160,
    type: 'inputNumChange',
    precision: 3
  },
  {
    title: '厂家面价',
    key: 'factoryFacePrice',
    width: 160,
    type: 'inputNumChange'
  },
  {
    title: '进价备注',
    key: 'purchasePriceNote',
    width: 200,
    type: 'inputNoLimit',
    maxlength: 200
  },
  {
    title: '加价类型',
    key: 'addPriceTypeStr',
    width: 160
  },
  {
    title: '运费折合比例',
    key: 'freightRatio',
    width: 160,
    type: 'inputNumChange',
    precision: 3
  },
  {
    title: '包装费折合比例',
    key: 'packRatio',
    width: 160,
    type: 'inputNumChange',
    precision: 3
  },
  {
    title: '加工费折合比例',
    key: 'processChargesRatio',
    width: 160,
    type: 'inputNumChange',
    precision: 3
  },
  {
    title: '返利折合比例',
    key: 'rebateRatio',
    width: 160,
    type: 'inputNumChange',
    precision: 3
  },
  {
    title: '返利说明',
    key: 'rebateRatioDesc',
    type: 'inputNoLimit',
    width: 160,
    maxlength: 300
  },
  {
    title: '成本价',
    key: 'mainUnitCostPrice',
    minWidth: 150
  },
  {
    title: '发票类型',
    key: 'invoiceTypeName'
  },
  {
    title: '税率',
    key: 'taxRate'
  }
]

export const singleAreaPurchaseColumns = [
  {
    title: '参照城市',
    key: 'templateCityName',
    minWidth: 150
  },
  {
    title: '业务区域',
    key: 'saleAreaName',
    minWidth: 150
  },
  {
    title: 'SKU编码',
    key: 'skuNo',
    minWidth: 150
  },
  {
    title: '商品名称',
    key: 'productName',
    minWidth: 150
  },
  {
    title: '规格',
    key: 'specDetailStr',
    minWidth: 150
  },
  {
    title: '商品类型',
    key: 'productTypeStr',
    minWidth: 150
  },
  {
    title: '主计量单位',
    key: 'mainUnitStr',
    minWidth: 150
  },
  {
    title: '进价类型',
    key: 'purchasePriceType',
    render: (h, {
      row
    }) => {
      return (
        <div >
          { row.purchasePriceType == 1 ? '统一进价' : '区域进价'}
        </div>
      );
    }
  },
  {
    title: '主计量进价',
    key: 'mainPurchasePrice',
    width: 160,
    type: 'inputNumChange',
    precision: 3
  },
  {
    title: '厂家面价',
    key: 'factoryFacePrice',
    width: 160,
    type: 'inputNumChange'
  },
  {
    title: '进价备注',
    key: 'purchasePriceNote',
    width: 200,
    type: 'inputNoLimit',
    maxlength: 200
  },
  {
    title: '加价类型',
    key: 'addPriceTypeStr',
    width: 160
  },
  {
    title: '运费折合比例',
    key: 'freightRatio',
    width: 160,
    type: 'inputNumChange',
    precision: 3
  },
  {
    title: '包装费折合比例',
    key: 'packRatio',
    width: 160,
    type: 'inputNumChange',
    precision: 3
  },
  {
    title: '加工费折合比例',
    key: 'processChargesRatio',
    width: 160,
    type: 'inputNumChange',
    precision: 3
  },
  {
    title: '返利折合比例',
    key: 'rebateRatio',
    width: 160,
    type: 'inputNumChange',
    precision: 3
  },
  {
    title: '返利说明',
    key: 'rebateRatioDesc',
    type: 'inputNoLimit',
    width: 160,
    maxlength: 300
  },
  {
    title: '成本价',
    key: 'mainUnitCostPrice',
    minWidth: 150
  },
  {
    title: '发票类型',
    key: 'invoiceTypeName'
  },
  {
    title: '税率',
    key: 'taxRate'
  }
]
